package com.hksj.Intelligentmanagement.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel
@TableName("sys_dict")
public class DictEntity extends BaseEntity {

    @ApiModelProperty("父id")
    private String pid;

    @ApiModelProperty("字典名称")
    private String name;
    @ApiModelProperty("字段名")
    private String property;

    @ApiModelProperty("等级")
    private Integer level;

    @ApiModelProperty("排序字段")
    private Integer seq;

    @ApiModelProperty("字典状态（0关闭，1开启）")
    private String state;

    @ApiModelProperty("是否存在子配置（0存在，1不存在）")
    private Integer hasChild;

    @ApiModelProperty("逻辑删除")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer delFlag;

    @ApiModelProperty("备注")
    private String remark;

}
